﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="ColorWheel.ColorSlice" Width="20" Height="100" xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows">

	<Grid x:Name="LayoutRoot" HorizontalAlignment="Center">
		<vsm:VisualStateManager.VisualStateGroups>
			<vsm:VisualStateGroup x:Name="Standard">
				<vsm:VisualState x:Name="Hover">
					<Storyboard>
						<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Slice" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
							<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1.05"/>
						</DoubleAnimationUsingKeyFrames>
						<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Slice" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
							<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1.05"/>
						</DoubleAnimationUsingKeyFrames>
					</Storyboard>
				</vsm:VisualState>
				<vsm:VisualState x:Name="Normal"/>
			</vsm:VisualStateGroup>
		</vsm:VisualStateManager.VisualStateGroups>
		<Path Height="100" VerticalAlignment="Top" MouseLeftButtonUp="Slice_MouseLeftButtonUp" MouseEnter="LayoutRoot_MouseEnter" MouseLeave="LayoutRoot_MouseLeave" Stretch="Fill" Stroke="LightGray" StrokeThickness="0" Data="M325.19791,239.80049 L332.03885,165.94427 C332.03885,165.94427 326.01663,164.07573 319.02936,165.83286 C318.6825,165.92009 325.19791,239.80049 325.19791,239.80049 z" Width="20" HorizontalAlignment="Center" x:Name="Slice" RenderTransformOrigin="0.5,0.5" Cursor="Stylus">
			<Path.Fill>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,-.123">
                    <GradientStop Color="#FFFFFFFF" Offset="0" />
                    <GradientStop x:Name="SliceColor1" Color="#FFFF0000" Offset="0.25"/>
                    <GradientStop x:Name="SliceColor2" Color="#FFFF0000" Offset="0.35" />
                    <GradientStop Color="#FF000000" Offset="1"/>					
				</LinearGradientBrush>
			</Path.Fill>
			<Path.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</Path.RenderTransform>
		</Path>
	</Grid>
</UserControl>